<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			.div1{
				width: 200px;
				height: 100px;
				background-color: red;
				border-radius: 200px  200px  0 0;
				position: relative;
			}
			.div2{
				width: 200px;
				height: 100px;
				background-color: brown;
				border-radius: 0   0  200px  200px;
				position: relative;
			}
			.suby1{
				z-index: 10;
				width: 100px;
				height: 100px;
				background-color: brown;
				border-radius:200px 200px  200px  200px;
				position: absolute;
				top: 50px;
			}
			.suby2{
				width: 100px;
				height: 100px;
				background-color: red;
				border-radius:200px 200px  200px  200px;
				position: absolute;
				top: -50px;
				right: 0px;
			}
			.y1{
				z-index: 2;
				width: 40px;
				height: 40px;
				background-color: red;
				border-radius:20px;
				position: absolute;
				right: 35px;
				top: 35px;
				
			}
			.y2{
				z-index: 2;
				width: 40px;
				height: 40px;
				background-color: brown;
				border-radius:20px;
				position: absolute;
				right: 35px;
				top: 35px;
			}
			.taiji{
				z-index: 2;
				width: 200px;
				height: 100px;
				border-radius:50% ;
				position: absolute;
				left: 100px;
				top: 100px;
			
				box-shadow:200px  150px  200px #232FF0;
				
			}
		</style>
	</head>
	<body>
		<div class="taiji" style="left: 100px ;">
			
		<div class="div1">
			<div class="suby1">
				<div class="y1">
					
				</div>
				
			</div>
		</div>
		<div class="div2">
			<div class="suby2">
				<div class="y2">
					
				</div>
				
			</div>
		</div>
        </div>
        <button onclick="Divleft()">向右移动</button>
		   <button onclick="Divleft2()">向左移动</button>
		   <button onclick="Divtop()">向下移动</button>
		    <button onclick="Divtop2()">向上移动</button>
		     <button onclick="Divrt(10,10)">向右下移动</button>
		       <button onclick="Divrt(10,-10)">向右上移动</button>
		         <button onclick="Divrt(-10,10)">向左下移动</button>
		           <button onclick="Divrt(-10,-10)">向左上移动</button>
        <script type="text/javascript">
        	var l=100;
        	var t=100;
        	function Divleft(){
        		var tj=document.querySelector(".taiji");
        				l=l+20;
        		tj.style.left=l+"px";
        	
        		
        	}
        		function Divleft2(){
        		var tj=document.querySelector(".taiji");
        		l=l-20;
        		tj.style.left=l+"px";
        	}
        		function Divtop(){
        		var tj=document.querySelector(".taiji");
        		t=t+20;
        		tj.style.top=t+"px";
        			
        	}
        	function Divtop2(){
        		var tj=document.querySelector(".taiji");
        		t=t-20;
        		tj.style.top=t+"px";
        			
        	}
        	function Divrt(x, y) {
        		var tj=document.querySelector(".taiji");
				l = l + x;
				t = t + y;
				
				tj.style.left = l + "px";
				tj.style.top = t + "px";


			}
        	
        </script>
	</body>
</html>

